2020-2021 Sunseeker Telemetry and Lighting System
mpu_ex3_systemPreInit.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

 MPU_enablePUCOnViolation (MPU_BASE, MPU_SECOND_SEG)
 
 MPU_initThreeSegments (MPU_BASE, &param)
 
 MPU_start (MPU_BASE)
 
void main (void)
 

Variables

MPU_initThreeSegmentsParam param = {0}
 
param seg1boundary = 0x05
 
param seg2boundary = 0x08
 
param seg1accmask = MPU_READ|MPU_WRITE|MPU_EXEC
 
param seg2accmask = MPU_READ
 
param seg3accmask = MPU_READ|MPU_WRITE|MPU_EXEC
 
 return
 

Function Documentation

◆ main()

void main ( void  )

Definition at line 88 of file mpu_ex3_systemPreInit.c.

◆ MPU_enablePUCOnViolation()

MPU_enablePUCOnViolation ( MPU_BASE  ,
MPU_SECOND_SEG   
)

MSP430FR57x Demo - MPU Write protection violation - PUC in the device's boot process. The MPU configuration code is put in the _system_pre_init() for CCS and __low_level_init() for IAR.

Description: The MPU segment boundaries are defined by: Border 1 = 0xCA00 [segment #: 5] Border 2 = 0xD000 [segment #: 8] Segment 1 = 0xC200 - 0xC9FF Segment 2 = 0xCA00 - 0xCFFF Segment 3 = 0xD000 - 0xFFFF Segment 2 is write protected. Any write to an address in the segment 2 range causes a PUC. The LEDs toggles due to repeated PUCs. A delay is included so the debugger can gain access via JTAG.

ACLK = n/a, MCLK = SMCLK = TACLK = default DCO = ~625 KHz

     MSP430FR5739
   ---------------
/ |
RST

| |

Referenced by main().

◆ MPU_initThreeSegments()

MPU_initThreeSegments ( MPU_BASE  ,
param 
)

Referenced by main().

◆ MPU_start()

MPU_start ( MPU_BASE  )

Referenced by main().

Variable Documentation

◆ param

MPU_initThreeSegmentsParam param = {0}

Definition at line 75 of file mpu_ex3_systemPreInit.c.

Referenced by calibrateADC(), HSPLL_routine(), and main().

◆ return

return

Definition at line 85 of file mpu_ex3_systemPreInit.c.

◆ seg1accmask

param seg1accmask = MPU_READ|MPU_WRITE|MPU_EXEC

Definition at line 78 of file mpu_ex3_systemPreInit.c.

◆ seg1boundary

param seg1boundary = 0x05

Definition at line 76 of file mpu_ex3_systemPreInit.c.

◆ seg2accmask

param seg2accmask = MPU_READ

Definition at line 79 of file mpu_ex3_systemPreInit.c.

◆ seg2boundary

param seg2boundary = 0x08

Definition at line 77 of file mpu_ex3_systemPreInit.c.

◆ seg3accmask

param seg3accmask = MPU_READ|MPU_WRITE|MPU_EXEC

Definition at line 80 of file mpu_ex3_systemPreInit.c.